<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的个人OJ系统</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 基础样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        :root {
            --primary-color: #1abc9c;
            --primary-dark: #16a085;
            --primary-light: #2ecc71;
            --primary-lightest: #d1f2eb;
            --secondary-color: #34495e;
            --accent-color: #e74c3c;
            --text-light: #ecf0f1;
            --text-dark: #2c3e50;
            --bg-light: #f9f9f9;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        html, body {
            width: 100%;
            height: 100%;
            background-color: var(--bg-light);
            color: var(--text-dark);
            scroll-behavior: smooth;
        }

        .container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* 导航栏样式 */
        .navbar {
            width: 100%;
            height: 70px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 5%;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar .logo {
            display: flex;
            align-items: center;
            color: white;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .logo i {
            margin-right: 10px;
            font-size: 1.8rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links a {
            display: inline-block;
            color: white;
            text-decoration: none;
            padding: 0 20px;
            height: 70px;
            line-height: 70px;
            font-size: 1.1rem;
            transition: var(--transition);
            position: relative;
        }

        .nav-links a:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 4px;
            background-color: white;
            transition: var(--transition);
            transform: translateX(-50%);
        }

        .nav-links a:hover::after {
            width: 80%;
        }

        .login-btn {
            background-color: white;
            color: var(--primary-color);
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 600;
            transition: var(--transition);
        }

        .login-btn:hover {
            background-color: var(--text-light);
            transform: translateY(-2px);
        }

        /* 主要内容区域 */
        .content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px 20px;
            text-align: center;
            background: linear-gradient(135deg, rgba(26, 188, 156, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
            position: relative;
            overflow: hidden;
        }

        .content::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, var(--primary-lightest) 0%, transparent 70%);
            z-index: 0;
        }

        .content::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, var(--primary-lightest) 0%, transparent 70%);
            z-index: 0;
        }

        .hero-section {
            max-width: 800px;
            padding: 40px;
            border-radius: 20px;
            background-color: white;
            box-shadow: var(--shadow);
            margin-bottom: 40px;
            position: relative;
            z-index: 1;
            transition: var(--transition);
        }

        .hero-section:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        }

        .hero-section h1 {
            font-size: 2.8rem;
            color: var(--primary-dark);
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .hero-section p {
            font-size: 1.3rem;
            color: var(--secondary-color);
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            color: white;
            text-decoration: none;
            padding: 15px 40px;
            border-radius: 50px;
            font-size: 1.2rem;
            font-weight: 600;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
            margin-top: 20px;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4);
        }

        .features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
            max-width: 1200px;
            margin-top: 40px;
            position: relative;
            z-index: 1;
        }

        .feature-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            width: 280px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .feature-card:hover {
            transform: translateY(-10px);
        }

        .feature-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .feature-card h3 {
            color: var(--primary-dark);
            margin-bottom: 15px;
            font-size: 1.4rem;
        }

        .feature-card p {
            color: var(--secondary-color);
            line-height: 1.5;
        }

        /* 页脚样式 */
        .footer {
            background-color: var(--secondary-color);
            color: var(--text-light);
            padding: 30px 0;
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .footer p {
            margin: 10px 0;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .navbar {
                padding: 0 20px;
                height: 60px;
            }
            
            .nav-links a {
                padding: 0 15px;
                height: 60px;
                line-height: 60px;
                font-size: 1rem;
            }
            
            .hero-section h1 {
                font-size: 2.2rem;
            }
            
            .hero-section p {
                font-size: 1.1rem;
            }
            
            .features {
                flex-direction: column;
                align-items: center;
            }
            
            .feature-card {
                width: 100%;
                max-width: 350px;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- 导航栏 -->
        <div class="navbar">
            <div class="logo">
                <i class="fas fa-code"></i>
                <span>我的OJ平台</span>
            </div>
            <ul class="nav-links">
                <li><a href="/"><i class="fas fa-home"></i> 首页</a></li>
                <li><a href="/all_questions"><i class="fas fa-book"></i> 题库</a></li>
            </ul>
            <a class="login-btn" href="#"><i class="fas fa-sign-in-alt"></i> 登录</a>
        </div>

        <!-- 主要内容区域 -->
        <div class="content">
            <div class="hero-section">
                <h1>欢迎来到我的OnlineJudge平台</h1>
                <p>这是我个人独立开发的一个在线OJ平台，提供丰富的算法题库和实时的代码评测功能，助您提升编程能力。</p>
                <a class="cta-button" href="/all_questions">
                    <i class="fas fa-play-circle"></i> 点击我开始编程啦!
                </a>
            </div>

            <div class="features">
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-laptop-code"></i>
                    </div>
                    <h3>丰富的题库</h3>
                    <p>涵盖数据结构、算法、数学等各类编程题目，从入门到精通，满足不同层次学习者的需求。</p>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-bolt"></i>
                    </div>
                    <h3>快速评测</h3>
                    <p>高效的评测系统，支持多种编程语言，实时反馈代码运行结果，帮助您快速定位问题。</p>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-chart-line"></i>
                    </div>
                    <h3>学习分析</h3>
                    <p>详细的学习统计和进度跟踪，可视化展示您的编程能力提升轨迹，让学习更有目标。</p>
                </div>
            </div>
        </div>

        <!-- 页脚 -->
        <div class="footer">
            <div class="footer-content">
                <p>© 在线编程评测系统 | 由个人开发者独立开发</p>
            </div>
        </div>
    </div>

    <script>
        // 简单的动画效果
        document.addEventListener('DOMContentLoaded', function() {
            const heroSection = document.querySelector('.hero-section');
            heroSection.style.opacity = '0';
            heroSection.style.transform = 'translateY(20px)';
            
            setTimeout(() => {
                heroSection.style.transition = 'opacity 0.8s ease, transform 0.8s ease';
                heroSection.style.opacity = '1';
                heroSection.style.transform = 'translateY(0)';
            }, 200);
            
            // 功能卡片动画
            const featureCards = document.querySelectorAll('.feature-card');
            featureCards.forEach((card, index) => {
                card.style.opacity = '0';
                card.style.transform = 'translateY(20px)';
                
                setTimeout(() => {
                    card.style.transition = 'opacity 0.8s ease, transform 0.8s ease';
                    card.style.opacity = '1';
                    card.style.transform = 'translateY(0)';
                }, 400 + index * 200);
            });
        });
    </script>
</body>

</html>